package com.onetime.mall.trading.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.onetime.mall.trading.entity.IdleItemEntity;
import com.onetime.mall.trading.utils.PageUtils;
import com.onetime.mall.trading.vo.ItemUserVo;
import com.onetime.mall.trading.vo.StatisticsVo;

import java.util.List;
import java.util.Map;

/**
 * 二手商品表
 *
 * @author liyixuan
 * @email liyixuan106@163.com
 * @date 2022-03-26 19:38:29
 */
public interface IdleItemService extends IService<IdleItemEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCategory(Map<String, Object> params);

    PageUtils queryPageAll(Map<String, Object> params);

    ItemUserVo getIdleItem(Long id);

    boolean addIdleItem(IdleItemEntity idleItemEntity);

    List<IdleItemEntity> getAllIdelItem(Long userId);

    boolean updateIdleItem(IdleItemEntity idleItemEntity);

    PageUtils adminGetIdleListByPage(Map<String, Object> params);

    IdleItemEntity GetProductInformation(Long idleId);

    List<StatisticsVo> getProductCategoryStatistics(Integer status);

    void changeByIds(List<Long> collect);
}

